package com.ysu.yybk.form;

import lombok.Data;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;

@Data
public class DiscussForm {

    @NotEmpty(message = "课程id不能为空")
    private String courseId;

    @NotEmpty(message = "标题不能为空")
    private String title;

    @NotEmpty(message = "教师工号不能为空")
    private String teacherId;

    @NotEmpty(message = "教师姓名不能为空")
    private String teacherName;

    // 每组人数
    private Integer peopleCount;

    // 组数
    private Integer groupCount;

    // 课堂学生总数
    @NotNull(message = "课堂学生总人数不能为空")
    private Integer studentCount;

    @NotNull(message = "分组模式不能为空")
    private Integer mode;
}

//    "course_id": "(2018-2019-2)-99999999-666666-1",
//    "title": "1-0",
//    "teacher_id": "666666",
//    "teacher_name": "管理员",
//    "student_count": 16,
//    "group_student_counts": 0,
//    "group_count": 16,
//    "mode": 2